<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/lib/layui-v2.5.5/css/layui.css"  media="all">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>

<table class="layui-hide" id="test"></table>


<script src="${pageContext.request.contextPath}/lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述 JS 路径需要改成你本地的 -->

<script>
    layui.use('table', function(){
        var table = layui.table;

        table.render({
            elem: '#test'
            ,url:'/owner/table/list/'
            ,cols: [[
                {field:'ownerId', width:80, title: 'ID'}
                ,{field:'communityName', width:100, title: '小区名称'}
                ,{field:'developerName', width:100, title: '所属房产'}
                ,{field:'ownerName', width:100, title: '用户名', sort: true}
                ,{field:'ownerPic', width:100, title: '照片'}
                ,{field:'ownerIdcard', width:200, title: '身份证'}
                ,{field:'ownerPhone', width:140, title: '手机'}
                ,{field:'profession', width:160, title: '职业'}
                ,{field:'ownerBirthday', width:160, title: '出生日期'}
                ,{field:'ownerGender', width:80, title: '性别'}
                ,{field:'ownerCreateTime', width:160, title: '创建时间'}
            ]]
            ,page: true
        });
    });
</script>

</body>
</html>
